package com.ict.common;

import java.text.SimpleDateFormat;

/**
 * Created by chenlong on 2016/12/5.
 */
public class TimeUtils {
    public static long getUnixTime(){
        long unixTime=System.currentTimeMillis()/1000;
        return unixTime;
    }

    public static String getNowTime(){
        SimpleDateFormat sDateFormat   =   new   SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
        String   date   =   sDateFormat.format(new   java.util.Date());
        return date;
    }
}
